package kernel_gui.interfaces.kernel_gui;

import kernel_db.db.DB_Error;

public interface IManageDataBase {
	
	/**
	 * if the DB is empty, this function will import all the data from the files, 
	 * and if the DB isn't empty it will update the tuples already in the DB and import the ones that aren't in the DB
	 * @throws DB_Error if an SQL error occurred
	 */
	void largeUpdate(int requestId);
	
	void smallUpdate(int requestId);
	
	/**
	 * generates questionNum new questions and enteres them to the data - base 
	 * */
	
	void generateQuestions(int questionNum, int requestId);
	
	/**
	 * delete all the data from DB tables, convert the tables to MyISAM, 
	 * import the data into the DB, and convert the tables back to InnoDB
	 * @throws DB_Error if an SQL error occurred
	 */
	public void importToDB(int requestId) ;

}
